import java.util.Scanner;

public class a216_數數愛明明_2 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		Long n;
		Long f_sum;
		Long g_sum;
		
		String output;
		
		while(sc.hasNext()) {
			n = sc.nextLong();
			
			f_sum = (long)0;
			g_sum = (long)0;
			for(int i = 1; i <= n; i++) {
				f_sum += i;
				g_sum += (i * (i + 1)) / 2;
			}
			
			output = "";
			output += Long.toString(f_sum) + " " + Long.toString(g_sum);
			
			System.out.println(output);
		} // next		
	} // main

}